package com.jk.mapper;

import com.jk.vo.Employee;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface EmployeeMapper {
    int deleteByPrimaryKey(String employeeId);

    int insert(Employee record);

    int insertSelective(Employee record);

    Employee selectByPrimaryKey(String employeeId);

    int updateByPrimaryKeySelective(Employee record);

    int updateByPrimaryKey(Employee record);
    @Select("select * from employee where employee_name =#{employeeName}")
    @Results({@Result(property = "employeeId",column = "employee_id"),
            @Result(property = "employeeName",column = "employee_name"),
            @Result(property = "employeePwd",column = "employee_pwd")})
    List<Employee> login(String employeeName);
}